package com.gsj.service.user;

import com.github.pagehelper.PageInfo;
import com.gsj.domain.user.User;

import java.util.List;

public interface UserService {
    List<User> findAll(String companyId);

    PageInfo<User> findByPage(String companyId,Integer pageNum,Integer pageSize);

    void save(User user);

    void update(User user);
    User findById(String userId);

    Boolean delete(String id);

    void changeRole(String userId, String[] roleIds);

    User findByEmail(String email);
}
